package com.qingzhou.web.service.impl.params.vo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.qingzhou.web.service.impl.convert.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class OmicsCollectExcelVo {
    @ExcelProperty(value = "状态" ,converter = DictConverter.class)
    private String status;
    @ExcelProperty(value = "医院Site" ,converter = DictConverter.class)
    @DictParent("hospital_site_dict")
    private String hospitalSite;
    @ExcelProperty("患者姓名")
    private String patientName;
    @ExcelProperty(value = "患者编号")
    private String patientCode;
    @ExcelProperty(value = "所属队列", converter = DictConverter.class)
    @DictParent("belong_queue_dict")
    private String belongQueue;
    @ExcelProperty(value = "检测项目", converter = TestItemConverter.class)
    private String testItem;

    @ExcelProperty(value = "样本编号")
    private String sampleNo;

    @ExcelProperty(value = "样本名称")
    private String sampleName;

    @ExcelProperty(value = "送检材料",converter = MaterialsConverter.class)
    private List<String> materials;

    @ExcelProperty(value = "采样日期")
    @DateTimeFormat("yyyy年MM月dd日")
    private Date collectDate;

//    @ExcelProperty(value = "预计报告日期")
//    @DateTimeFormat("yyyy年MM月dd日")
//    private Date expectedReportDate;

    @ExcelProperty(value = "检测时间",converter = DictConverter.class)
    @DictParent("test_time_dict")
    private String testDate;

    @ExcelProperty(value = "组学类型",converter = DictConverter.class)
    @DictParent("types_omics_dict")
    private String omicsType;

    @ExcelProperty("数据检查原因")
    private String editReason;

    @ExcelProperty("终止原因")
    private String stopReason;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty(value="创建人",converter = UserConverter.class)
    private String createBy;

    @ExcelProperty("创建时间")
    private Date createTime;
}
